import re
from tqdm import tqdm
from lxml import etree
import requests


id = [{'猫和素描': '111530188'}, {'再见夏天': '111536969'}, {'《基拉皮皮★闪闪发光的2dmv': '111557774'},
      {'岛二郎': '111530284'}, {'欢迎来到水之国': '111530602'}, {'鲑鱼萝莉': '111548610'}, {'WOLF': '111530312'},
      {'個人メモ：股～内腿の立体構造': '111564294'}, {'RevivedWitch': '111557309'}, {'惠比寿!!!!': '111557050'},
      {'Magic show!': '111542477'}, {'黑雀之旅': '111531424'}, {'小气鬼': '111531457'},
      {"･:*:･ ﾟ '✫, sparkle' ✫ 'ﾟ ･:*:･ ˙": '111548214'}, {'小米': '111557297'}, {'伏击准备': '111536696'},
      {'画': '111555825'}, {'IROIRO': '111554091'}, {'无题': '111557167'}, {'葱': '111582949'},
      {'女仆空君': '111530873'}, {'【创作BL】生配的赤斯帕常客是男朋友': '111573734'}, {'里科': '111538676'},
      {'无题': '111560688'}, {'Copy': '111573375'}, {'汽车角色总结': '111572253'}, {'9:08pm': '111556575'},
      {'灯笼山路': '111581690'}, {'9月9日是奇尔诺日': '111558133'}, {'钟离老师': '111530308'},
      {'基塔桑黑': '111530612'}, {'广告': '111551977'}, {'星轨总结3': '111570487'}, {'No.2137《香蕉》': '111584959'},
      {'尼戈总结': '111553107'}, {'Satsuki': '111535042'}, {'无题': '111548738'}, {'软绵绵的苹果': '111557451'},
      {'0908': '111559126'}, {'蓝天布丁芭菲': '111571991'}, {'和我一起战斗吧!': '111540646'},
      {'睡公主送的礼物': '111557005'}, {'无题': '111572921'}, {'玻璃娃娃': '111577467'},
      {'好吃啊，萌萌啊W': '111550145'}, {'粉丝见面会': '111549839'}, {'Dada': '111542072'},
      {'假面骑士大厦六周年': '111578570'}, {'原神总结': '111568450'}, {'博喜多': '111536805'},
      {'蓝莓芝士蛋糕的搭配': '111551628'}, {'咳嗽游戏 Ⅱ': '111571940'}, {'【极道师】文豪野犬之福泽谕吉': '111557753'},
      {'刀刃': '111558436'}, {'瑞士卡比': '111567842'}, {'女高中生PEBOT(In游乐场)': '111569417'},
      {'娜维娅': '111556748'}, {'彩虹': '111536781'}, {'尼禄': '111569769'}, {'限定米克林': '111549303'},
      {'法尔赞': '111556960'}, {'水神自由纳': '111578098'}, {'便衣流浪者君': '111580496'}, {'廖先生': '111536825'},
      {'冰': '111579839'}, {'水晶和企鹅': '111580344'}, {'和吉拉蒂纳一起。': '111584639'}, {'嘴平母子': '111561072'},
      {'龙虹': '111536867'}, {'是节日': '111578102'}, {'木村拓哉': '111555501'}, {'无题': '111545226'},
      {'夏季新刊邮购开始了': '111557613'}, {'无题': '111547938'}, {'广告': '111582494'},
      {'特雷森地区的神奇宝贝和球': '111576110'}, {'秋天的气息': '111550700'}, {'&lt;Q&gt;': '111539858'},
      {'✨✨✨✨✨': '111578160'}, {'无题': '111549006'}, {'草莓蛋糕头发': '111572308'}, {'夏季日志': '111546977'},
      {'工程师部&hellip; 还可以再拜托你吗&hellip;？': '111548494'}, {'第12天芭蕾舞演员雷': '111539964'},
      {'这家面包店': '111566669'}, {'Furina': '111551035'}, {'老师好啊系列29': '111563251'}, {'符玄': '111548172'},
      {'柚鸟枣': '111534128'}, {'天火人立绘表情差分': '111576609'},
      {'发生了无法挽回的事态，灵梦先生请求原谅的魔理沙': '111550784'}, {'希娜': '111557042'},
      {'不要糖什么的，不要一时的温柔': '111579334'}, {'柚子': '111545804'}, {'奥利萨酱': '111557023'},
      {'Twitter总结': '111551763'}, {'是哈里的天使。': '111534610'}, {'&hellip;': '111582649'}, {'Furina': '111548377'},
      {'一喝酒就撒娇的河豚': '111540691'}, {'Day69娜塔莎': '111546667'}, {'(工作画) 樱桃子的发布待机画面': '111530741'},
      {'米娜生日快乐 ~♡': '111559032'}, {'发型': '111583439'}, {'鲤鱼旗': '111530315'},
      {'基于实验的多葛总公司育儿帕洛': '111561968'}, {'是生意吗？': '111566564'}, {'×': '111557225'},
      {'水星': '111559367'}, {'莱蒂先生': '111546816'}, {'夏天结束的rizean漫画': '111566271'}, {'无题': '111544770'},
      {'奇尔诺日': '111566089'}, {'无题': '111582727'}, {'轮回': '111552771'},
      {'【工作画】魔术: 扎扎环《全知》': '111547988'}, {'鲤鱼旗': '111556996'}, {'涂鸦': '111553669'},
      {'打扮': '111572136'}, {'20123.9.9铃兰': '111579720'}, {'鸟居': '111570583'}, {'孩子和小雷还有夏基': '111549251'},
      {'雅基鸡波卡': '111572569'}, {'【2434】最后的装 α 【19】': '111532354'}, {'韦尼斯公园马托梅塔诺': '111557584'},
      {'初音天地开神话': '111583138'}, {'凤豌诞祭2023': '111579025'}, {'找到了的威尼斯公园': '111564947'},
      {'Splaton 3发售一周年!!!': '111579900'}, {'无题': '111554885'}, {'吃刨冰的CB': '111576855'},
      {'弗兰酱': '111564484'}, {'小玉': '111582728'}, {'情薄捏621': '111542580'}, {'无题': '111578374'},
      {'08新书封面': '111550108'}, {'弹宝二周年生日会图': '111570451'}, {'Day70格蕾修': '111575129'},
      {'弗里纳': '111557100'}, {'星野红宝石': '111534386'}, {'Take a Break': '111559880'}, {'奇尔诺': '111567709'},
      {'无题': '111557799'}, {'好 ~ 累了 ~ 啊 ~': '111548585'}, {'喉咙': '111557846'}, {'小李奈特': '111548219'},
      {'喜多。': '111548191'}, {'蛋包饭': '111574151'}, {'胡卡酱': '111563541'}, {'第危机!解决俱乐部': '111577911'},
      {'梅特丽丝': '111581781'}, {'体操服玛丽': '111558448'}, {'大胃王的女孩': '111548660'},
      {'Ish the Tyrant': '111535324'}, {'推特总结': '111579828'}, {'孤零零': '111568441'}, {'课题': '111568924'},
      {'鲤鱼旗': '111583869'}, {'弗里纳': '111567675'}, {'【私人约稿】不小心看了裙底': '111574187'},
      {'阿默德科6很开心哦!!!!【剧透】': '111572823'}, {'监护人himari': '111544556'}, {'斯塔雷拉明信片01': '111559245'},
      {'变得好吃的咒语': '111561856'}, {'^ ^': '111554191'}, {'利涅萤': '111555409'},
      {'柚子&hellip;&hellip;': '111537467'}, {'白露吃点什么!': '111541260'}, {'纳斯普拉纳': '111568945'},
      {'狗系她哭了。': '111571465'}, {'喜多逃跑的理由': '111581846'}, {'花芽姐妹生日广告': '111541862'},
      {'胡夫': '111558799'}, {'发现': '111557595'}, {'Banbaleena': '111571656'}, {'原神Twilog': '111561926'},
      {'穿衣': '111551004'}, {'草神': '111557080'}, {'在青草上': '111552988'},
      {'100天ba日更绘画挑战!第33天!': '111555815'}, {'无题': '111552568'}, {'白衣天使': '111566143'},
      {'灰和狗': '111553483'}, {'棘境': '111556127'}, {'标签强化月总结': '111569853'}, {'Briar': '111531926'},
      {'尤卡和诺亚': '111584495'}, {'蓝色玫瑰': '111573422'}, {'鲤鱼旗': '111560520'}, {'塞莱斯先生': '111552468'},
      {'蓝色存档 _ 阿罗纳': '111533824'}, {'The White': '111571192'}, {'夏尼蒂特总结': '111559166'},
      {'咖啡女仆': '111568414'}, {'无题': '111549706'}, {'明年也要隔一会儿。': '111561547'}, {'努维莱特': '111562438'},
      {'169': '111567039'}, {'对峙': '111582139'}, {'如果能在梦中见到你': '111557083'}, {'拉布尤奇诺': '111581893'},
      {'开始的地方': '111555760'}, {'戌亥子生日应援广告': '111575985'}, {'充分的休息': '111557217'},
      {'2022冬 ~ 2023夏各种配合': '111557461'}, {'登场': '111572072'}, {'Shizuka sweating': '111563370'},
      {'16th': '111554014'}, {'我家的米克先生，神奇宝贝': '111581025'}, {'加油小伞小姐3857': '111555970'},
      {'弗里纳': '111570272'}, {'我女朋友的比弗/售后8': '111557835'}, {'普通女孩': '111559294'},
      {'超级阿尔蒂梅特可爱': '111572049'}, {'神里绫华': '111584637'}, {'旗袍璃奈非常可爱的画': '111554647'},
      {'铃兰': '111553068'}, {'锡兰': '111552465'}, {'音无小鸟生日快乐!': '111557386'}, {'符玄酱': '111566780'},
      {'被劫持了': '111575074'}, {'布鲁阿卡总结': '111555436'}, {'在电车上只有自己旁边空着的话会很失落吧': '111563043'},
      {'魔法师猫娘化': '111549642'}, {'生日姐姐': '111558082'}, {'♡珍珠妈妈生日快乐♡': '111556727'},
      {'ReineMEPtember2023': '111558376'}, {'MiComet': '111569109'}, {'爆诞2023!!!': '111582832'},
      {'BUDDY': '111536115'}, {'16th Anniversary': '111561847'}, {'小凯莫米七周年': '111565741'},
      {'多亏了你，里奥': '111571441'}, {'欢迎回来': '111576669'}, {'天空斯巴鲁先生': '111572322'},
      {'水井酱': '111576671'}, {'Shenhe wallpaper': '111553477'}, {'加查德总结1': '111581078'},
      {'鲤鱼旗，鲤鱼旗，鲤鱼旗，鲤鱼旗，鲤鱼旗': '111585911'}, {'棱镜记录11圆形切割': '111558145'},
      {'数码宝贝与法尔子': '111571864'}, {'Duel?': '111583389'}, {'比奇': '111550252'}, {
          '红壳的潘多拉最新25卷 (，,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,': '111537627'},
      {'笨蛋一&hellip;&hellip;': '111575022'}, {'原神': '111578206'}, {'继续等待的跟踪狂': '111552063'},
      {'一年后终于决定了姓氏的杨德男子总结': '111580312'}, {'绮良': '111557974'}, {'Hu Tao day and night': '111553582'},
      {'[Comm] Corn dog': '111548261'}, {'我要哭了': '111583473'}, {'鬼灭LOG': '111558298'}, {'CHANCE': '111563674'},
      {'无题': '111582736'}, {'美铃咲夜甜味处': '111566127'}, {'Rkgk-TenTen': '111567337'}, {'ReGLOSS': '111570872'},
      {'才羽midori (假) 和&hellip;': '111574471'}, {'旗袍雏鸟/加湿修正版': '111557139'}, {'小樱': '111558920'},
      {'✌️✌️': '111578301'}, {'Comfort the Archon': '111580973'}, {'弗里纳': '111546220'}, {'小熊维尼!': '111568656'},
      {'如果知道伊瓜苏被621对待的话，那边也会憧憬的吧': '111570700'}]


def get_url(url, id_list) -> list[dict]:
    """
    将id组合成完整链接
    :param url: 链接头部重复的
    :param id_list: id的列表
    :return: 完整的链接
    """
    url_complete_list = []
    for data in tqdm(id_list, '请等待'):
        url_complete = url + list(data.values())[0]
        name = list(data.keys())[0]
        url_complete_list.append({name:url_complete})
    return url_complete_list


if __name__ == "__main__":
    url_front = 'https://www.vilipix.com/illust/'
    url_list = get_url(url_front, id)
    print(url_list)
